home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xuldoc / nsIXULOverlayProvider.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  122 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXULOverlayProvider.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXULOverlayProvider_h__
  6. #define __gen_nsIXULOverlayProvider_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISimpleEnumerator; /* forward declaration */
  18.  
  19. class nsIURI; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIXULOverlayProvider */
  23. #define NS_IXULOVERLAYPROVIDER_IID_STR "1d5b5b94-dc47-4050-93b7-ac092e383cad"
  24.  
  25. #define NS_IXULOVERLAYPROVIDER_IID \
  26.   {0x1d5b5b94, 0xdc47, 0x4050, \
  27.     { 0x93, 0xb7, 0xac, 0x09, 0x2e, 0x38, 0x3c, 0xad }}
  28.  
  29. /**
  30.  * The chrome registry implements this interface to give overlays
  31.  * to the gecko XUL engine.
  32.  */
  33. class NS_NO_VTABLE nsIXULOverlayProvider : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULOVERLAYPROVIDER_IID)
  37.  
  38.   /**
  39.      * Get the XUL overlays for a particular chrome URI.
  40.      *
  41.      * @param aURI  The URI being loaded
  42.      * @return      An enumerator of nsIURI for the overlays of this URI 
  43.      */
  44.   /* nsISimpleEnumerator getXULOverlays (in nsIURI aURI); */
  45.   NS_IMETHOD GetXULOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) = 0;
  46.  
  47.   /**
  48.      * Get the style overlays for a particular chrome URI.
  49.      *
  50.      * @param aURI  The URI being loaded
  51.      * @return      An enumerator of nsIURI for the overlays of this URI 
  52.      */
  53.   /* nsISimpleEnumerator getStyleOverlays (in nsIURI aURI); */
  54.   NS_IMETHOD GetStyleOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIXULOVERLAYPROVIDER \
  60.   NS_IMETHOD GetXULOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval); \
  61.   NS_IMETHOD GetStyleOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIXULOVERLAYPROVIDER(_to) \
  65.   NS_IMETHOD GetXULOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) { return _to GetXULOverlays(aURI, _retval); } \
  66.   NS_IMETHOD GetStyleOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) { return _to GetStyleOverlays(aURI, _retval); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIXULOVERLAYPROVIDER(_to) \
  70.   NS_IMETHOD GetXULOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXULOverlays(aURI, _retval); } \
  71.   NS_IMETHOD GetStyleOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleOverlays(aURI, _retval); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsXULOverlayProvider : public nsIXULOverlayProvider
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSIXULOVERLAYPROVIDER
  82.  
  83.   nsXULOverlayProvider();
  84.  
  85. private:
  86.   ~nsXULOverlayProvider();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsXULOverlayProvider, nsIXULOverlayProvider)
  94.  
  95. nsXULOverlayProvider::nsXULOverlayProvider()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsXULOverlayProvider::~nsXULOverlayProvider()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* nsISimpleEnumerator getXULOverlays (in nsIURI aURI); */
  106. NS_IMETHODIMP nsXULOverlayProvider::GetXULOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* nsISimpleEnumerator getStyleOverlays (in nsIURI aURI); */
  112. NS_IMETHODIMP nsXULOverlayProvider::GetStyleOverlays(nsIURI *aURI, nsISimpleEnumerator **_retval)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* End of implementation class template. */
  118. #endif
  119.  
  120.  
  121. #endif /* __gen_nsIXULOverlayProvider_h__ */
  122.